package com.marshall.scstudy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/11/2 18:45
 */
@RestController
public class ZkOrderController {

    @Resource
    private RestTemplate restTemplate;

    public static final String INVOKE_URL= "http://cloud-provider-payment";


    @GetMapping("/order/zk")
    public String create(){
        return restTemplate.getForObject(INVOKE_URL+"/payment/zk",String.class);
    }

}
